package com.woniuxy.authapp.client;

import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.Map;

@FeignClient(contextId = "KeyPairClient",name = "yoga-auth",path = "/auth")
@Component
public interface KeyPairClient {

    @ApiOperation("获取公钥")
    @GetMapping("/rsa/publicKey")
    public Map<String, Object> getKey();

    @ApiOperation("测试")
    @GetMapping("/test")
    public void getKey2();
}